import request from '@/utils/request';

export function getSpecialRoom(query) {
    return request({
        url: `/sociaty/special_room${query}`,
        method: 'get',
    });
}

export function getRoomType() {
    return request({
        url: `sociaty/get_room_type`,
        method: 'get',
    });
}

export function getRoomName(query) {
    return request({
        url: `sociaty/get_room_name${query}`,
        method: 'get',
    });
}

export function postDeleteRoom(form) {
    return request({
        url: `sociaty/special_room/delete`,
        method: 'post',
        data: form,
    });
}

export function postAddRoom(form) {
    return request({
        url: `/sociaty/special_room/add`,
        method: 'post',
        data:form
    });
}


export function postEditRoom(form) {
    return request({
        url: `/sociaty/special_room/edit`,
        method: 'post',
        data:form
    });
}

